
import request from '@/utils/request'

// /admin/product/list/{page}/{limit} 获取列表数据
export const getSkuList = (page, limit) => request({ url: `/admin/product/list/${page}/${limit}`, method: 'get' })

// 上架 /admin/product/onSale/{skuId}

export const onSale = (skuId) => request({ url: `/admin/product/onSale/${skuId}`, method: "get" })

// 下架/admin/product/cancelSale/{skuId}

export const cancel = (skuId) => request({ url: `/admin/product/cancelSale/${skuId}`, method: "get" })

// 获取sku详情页 GET /admin/product/getSkuById/{skuId}
export const getSkuInfo = (skuId) => request({ url: `/admin/product/getSkuById/${skuId}`, method: 'get' })